/* MovementRule.java
 * 
 * Alfred Olschnoegger
 * 02.06.2008
 */

package domain.objectRules;

import java.util.Random;

import domain.GameObject;
import domain.game.Game;
import domain.location.Position;

/**
 * TODO description
 *
 * @date 02.06.2008
 * @author Alfred Olschnoegger
 */

public class SimpleMovementRule extends ObjectRule {

	public void use(GameObject obj, Game game) {
		// FIXME more intelligence
		Position pos = obj.getPos();
		
		Random rand = new Random();
		game.getArea().move(pos, rand.nextInt() % 3 - 1, rand.nextInt() % 3 - 1);	
	}
}



// end of MovementRule.java
